/* Section 3 Styling */
.section-3 {
    background-image: url('AGD2 BG IMAGE.jpg'); /* Ensure this is the correct image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 90vh;
    padding: 50px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
  }
  
  .section-3 .content {
    max-width: 1000px;
    
    border-radius: 15px;
    text-align: center;
    color: #002244; /* Dark text for contrast */
  }
  
  .section-3-headline {
    font-family: 'Montserrat', sans-serif;
    font-size: 70px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 5px;
  }
  
  .search-iconP3 {
    display: block;
    margin: 20px auto;  /* Centers the image */
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    cursor: pointer;
    margin-bottom: 30px;
  }
  
  .language-grid{
    display: none;
  }
  
  .search-button{
    display: none;
  }
  
  .languages {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjust the gap to control the space between cards */
    justify-content: center;
  }
  
  .language-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 500px; /* Adjust the spacing between the cards */
    max-width: 1200px; /* Limit the width of the container */
    margin: 0 auto; /* Center the container */
    padding: 20px;
  }
  
  .language-card {
    background: white;
    color: #002244;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }
  
  .language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  }
  
  @media (max-width: 899px) {
    .section-3-headline {
      font-size: 55px;
      margin-bottom: 15px;
      letter-spacing: 5px;
    }
  }
  
  @media (max-width: 770px) {
    .section-3-headline {
      font-size: 45px;
      margin-bottom: 15px;
      letter-spacing: 5px;
    }
    .language-card {
      background: white;
      color: #002244;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.8rem;
      font-weight: 500;
      padding: 10px 25px;
      border-radius: 15px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }
  
  }
  
  @media (max-width: 667px) {
    .section-3-headline {
      font-size: 40px;
      margin-bottom: 15px;
      letter-spacing: 4px;
    }
  
    .language-card {
      background: white;
      color: #002244;
      font-family: 'Montserrat', sans-serif;
      font-size: 0.7rem;
      font-weight: 500;
      padding: 10px 20px;
      border-radius: 15px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }
  }
  
  @media (max-width: 588px) {
    .section-3 {
      height:auto;
      background-color: white; /* Set the background to white */
      background-image: url('AGP3  BGCOLOR IMG.png'); /* Ensure the image path is correct */
      background-size: 100% auto;
      background-position: bottom center; /* Position the image at the bottom */
      background-repeat: no-repeat;
      padding: 0 0 0 0;
    }
  
    .section-3-headline {
      font-size: 33px;
      margin-top: 50px;
      letter-spacing: 4px;
    }
  
    .languages {
      display: none;
    }
  
    .language-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(80px, 1fr));
      gap: 10px;
      margin-top: 15px;
      margin-bottom: 10px;
      text-align: center;
    }
  
    .language-item {
      font-family: 'Montserrat', sans-serif;
      font-size: 18px;
      font-weight: bold;
      color: #002244;
      background-color: transparent; /* No background */
      border: none; /* No border */
    }
  
    .language-item-more {
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: bold;
      color: #898d92;
      background-color: transparent; /* No background */
      border: none; /* No border */
    }
  
    .language-item:hover {
      color: orange; /* Highlight effect on hover */
    }
  
    .search-iconP3 {
      display: none; /* Hide the old search icon */
    }
  
    .search-button {
      display: inline-block;
      background-color: orange; /* Orange background for the search button */
      color: white;
      margin-bottom: 270px;
      font-size: 16px;
      padding: 10px 20px;
      border-radius: 30px;
      text-align: center;
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      text-decoration: none; /* Remove underline from the link */
      margin-top: 10px; /* Add some space above the button */
    }
  
    .search-button:hover {
      background-color: darkorange; /* Darker shade of orange on hover */
    }
  }
  
  @media (max-width: 480px) {
    .section-3 {
      height:auto;
      background-color: white; /* Set the background to white */
      background-image: url('AGP3  BGCOLOR IMG.png'); /* Ensure the image path is correct */
      background-size: 100% auto;
      background-position: bottom center; /* Position the image at the bottom */
      background-repeat: no-repeat;
      padding: 0 0 0 0;
    }
  
    .section-3-headline {
      font-size: 28px;
      margin-top: 50px;
      letter-spacing: 4px;
    }
  
    .languages {
      display: none;
    }
  
    .language-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(80px, 1fr));
      gap: 13px ;
      margin-top: 0px;
      margin-bottom: 30px;
      text-align: center;
    }
  
    .language-item {
      font-family: 'Montserrat', sans-serif;
      font-size: 16px;
      font-weight: bold;
      color: #002244;
      background-color: transparent; /* No background */
      border: none; /* No border */
    }
  
    .language-item-more {
      font-family: 'Montserrat', sans-serif;
      font-size: 14px;
      font-weight: bold;
      color: #898d92;
      background-color: transparent; /* No background */
      border: none; /* No border */
    }
  
    .language-item:hover {
      color: orange; /* Highlight effect on hover */
    }
  
    .search-iconP3 {
      display: none; /* Hide the old search icon */
    }
  
    .search-button {
      display: inline-block;
      background-color: orange; /* Orange background for the search button */
      color: white;
      margin-top: 20px;
      margin-bottom: 230px;
      font-size: 16px;
      padding: 10px 20px;
      border-radius: 30px;
      text-align: center;
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
      text-decoration: none; /* Remove underline from the link */
      margin-top: 20px; /* Add some space above the button */
    }
  
    .search-button:hover {
      background-color: darkorange; /* Darker shade of orange on hover */
    }
  }